<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>JS03</title>
    </head>
    <body>


        <script>

            //console.log(new Date() instanceof Date);

            var obj = {

                e_id:'002',
                e_name:'xxx',
                e_sal:6890,
                info:function(){
                    return this.e_id+","+this.e_name+","+this.e_sal;
                }
            };


            for(var prop in obj){
                console.log(prop+"=>"+obj[prop]);
            }


            var obj = {};

            obj[0]=999;
            obj[1]=123;
            obj[2]=555;

            console.log(obj[2]);


            
        </script>



    </body>


</html>